package com.hzlj.position.dbsync.shanxi.controller;


import com.fz.common.base.dto.ResultDTO;
import com.hzlj.position.dbsync.shanxi.service.TSqjzDeviceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 【定位设备表】接口
 *
 * @author lifh
 * @date 2023-07-17 15:52:39
 */
@Slf4j
@RestController
@RequestMapping("/shanxi/tsqjz/device")
public class TSqjzDeviceController {

    @Resource
    private TSqjzDeviceService tSqjzDeviceService;


    /**
     * 同步 矫正对象
     *
     * @return 对象列表
     */
    @GetMapping("/sync")
    public ResultDTO<Long> sync() {
        log.debug("【同步】矫正对象");
        return new ResultDTO<>(tSqjzDeviceService.sync());
    }

}

